This appliation is a stupid alarm for your office. It's just like those funky car alarms that you often hear going off in parking lots. This appliation monitors the current volume in the area and if a sound occurs that is too loud, then the alarm will go off.
The sensitivity is adjustable by the user, but really low volumes will mean that the sensitivity will be so slight as to cause the alarm to go off at the slightest sound.
Since I really hate the Dialog Manager, I always avoid using it. Therefore, when you see what you think are dialogs on the screen you're wrong. They're standard windows that I created using QuickDraw, Window Manager and the Control Manager to handle. I even use modal dialogs this way. This allows my standard event loop to control everything. This also means that I get idle time, which I really needed, for free. I initially designed these windows using ResEdit and its dialog editor. Then I took the rectangle positions of the items and made 'rect' resources. These are then the positions I used when creating the windows.
This code is public domain, and may be given away without cost. It was first presented to the MacHack '92 conference. Newer versions are probably available by the time you read this message.